package com.znf4;

import java.text.SimpleDateFormat;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.znf4.utils.SpringContextUtil;

/**
 * 功能说明：对账处理(包括下载对账文件、转换对账文件、对账) .
 */
public class AppTask {

	private static final Log LOG = LogFactory.getLog(AppTask.class);

    private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
    
    
	public static void main(String[] args) {
	

		try {
			// 加载Spring配置文件
			ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] { "spring/spring-context.xml" });
			// 初始化SpringContextUtil
			SpringContextUtil ctxUtil = new SpringContextUtil();
			ctxUtil.setApplicationContext(context);
			
		} catch (Exception e) {
			LOG.error("bigpay-app-reconciliation error:", e);
		}

	}
	
	
	public void  start (){
		
		System.out.println("定时任务启动了-----");
		
		
	
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
